﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Prism.Events;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Unity;
using DXTools.UI.Core;
using DXTools.UI.Core.ViewModel;


namespace DXTools.UI.Modules.ODataQueryDesigner.Model
{
    public class RelationshipClass : ViewModelBase
    {
        public RelationshipClass(String SchemaName, String EntityLogicalName)
        {
            this.SchemaName = SchemaName;
            this.EntityLogicalName = EntityLogicalName;

        }

        public string SchemaName { get; set; }
        public string EntityLogicalName { get; set; }
        public bool IsSelectAllAttributes { get; set; }
        private EntityClass _entity;

        public EntityClass Entity
        {
            get { return _entity; }
            set
            {
                _entity = value;
                RaisePropertyChanged("Entity");
            }
        }
    }

}
